'''
Author: SUNNY
Description: 
Date: 2025-11-03 18:32:14
'''
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ.get("AI_DEEPSEEK_API_KEY"),
    base_url="https://api.deepseek.com"
)

response = client.chat.completions.create(
    model="deepseek-chat",
    messages=[
        {"role": "system", "content": "You are a helpful assistant"},
        {"role": "user", "content": "你好"},
    ],
    stream=False
)

print(response.choices[0].message.content)